fix jslint warnings.