Event shim and dispatcher to use the DOM 3 event syntax everywhere