Fix event target retrieval for IE.
Add support for backwards compatibility