Fix not tracking form submits when jQuery adds click/submit handler

I have a use case (added tests) where I want to perform some post-submit form logic (such as disabling the submit button etc).

I use a jQuery on-click handler to abort the initial submit, and then perform a manual submit().

This seems to prevent analytics.js from tracking the event.

Its fixed by simply supporting jQuery binding when its available.

Tests have been added.