I follow the instructions in https://stackoverflow.com/a/881556/2704265 to add a namespace, as below:
var theme1 = {
document.addEventListener('DOMContentLoaded', function() {
});
};
However, after that, I will get Uncaught SyntaxError: Unexpected token '.'
which point to the '.' after 'document', why?