Fixed issues reported by jshint