Fixing jshint errors and refactoring the jshint task of grunt