fiddly jshint fixes