Syntax error in main.js