fix a few jslint warnings