Hopefully fixed custom event support for older IE versions.