Fixing `element.dispatch()` for IE8