corrected jslint errors