fix some jslint errors