Add document.createEvent for creating events in oldIE