misc tweaks for jshint