Added the grunt and grunt-jshint. Fixed bugs after jshinted