Bring some event handling joy to the DOM. Also normalizes IE8 API.