and instead of registering a listener for each form on the page (and none for the forms added dynamically), you should registered a single one on the document using event delegation IMO.