Fixed jslint warnings