fix jslint warnings