Update main.js

cleaning up jshint recommendations