Fix issues reported by jshint