Fixed jslint issues