removed jslint warnings.