modify js validate