fix some jshint problems