Added api portion to forms and js.