fix jshint errors in main.js