modified main.js for syntax error