fix some jslint issues