jshint bugs correction