patching things that shamed me in jshint