fixed warnings and errors with grunt jshint