[CLEAN]planner: clean js code.