jshint improvements