jshint issues corrected