Removed jslint warnings