fixed jshint errors.