update the plan js file