[CLEAN]planner:clean some js code.