Fixed jslint complaints