fixed jshint errs