Add documentation for addEvent
Set X-Requested-With header to "XMLHttpRequest" for ajax requests.
Modify the getFormData method to use the values from a given clicked element or the default submitting button, if applicable.
Create the attachFormListener method for attaching a listener to a form, for stopping form submit events.