minor tweaks to fix jshint