fix some jshint errors