fixed jshint errors in main.js