[IMP]planner_crm: simplify the js code.