Renamed form.js to AjaxForm.js and added a new JS class called DataPoster which creates a form on the DOM tree, adds data fields to the form and submits the form.