fix some jslint hints