fixed jslint warnings.