add controller for JSON and JS for posting