fixed jslint warning