Fix lint errors in main.js