make real events happen in-browser, with pure DOM and optional $