Add universal dispatchEvent method
Remove form.submitByEvent

Generic dispatchEvent2 should be used instead