add judge_depth.js