Fixed jslint warns