[IMP]planner: clean js code.