jshint issues fixed