fix some jshint issues