minor jshint improvements