I used the following function to change my "clock website" to a lighter theme.
var light = function() {
document.getElementsByClassName('themechange').style.color = "black"
document.getElementsByTagName('body').style.backgroundColor = "white";
};
I get the error in the title when I try to run the function. If you need more code, inspect element here