code changes after jshint