Updated gruntfile.js to enable more jshint options plus changes to .js files to fix the warnings