fixed syntax error in main.js