fix syntax error in main.js