removed jslint errors