Update newplan.js
if click save button, post plans to rails server