fix some jshint warnings