using single main.js file instead of -dev and -prod
fixing jshint errors