address a couple jshint warnings