Ensure support for IE9's event handlers and window.event