fixed jslint warns