Fixed errors according to grunt jshint