Fixed jslint errors