Fixed jslint errors and settings, fixed code and Gruntfile settings