Using a function listener instead of a custom event. Now this works in IE.