Update the plan_detail js effect