small fixes
fixing a bunch of reasonable jshint warnings