fix jshint warnings