jslint errors fixed