corrected jshint issues