Fix planner page javascript.