Corrected the syntax errors in main.js