fixed jshint's errors