Added api portions to forms and js.