fix jshint complaints