Fix Gruntfile configurations for the project
Fix JavaScript errors detected by JSHint