Normalize form submission event handler

Let's use standard jQuery event handling instead of the "onsubmit" html
attribute
Merge pull request #1515 from mlocati/normalize-onsubmit-handling-add-collection

Normalize form submission event handler