fix minor jshint issues