feature detect for document.createEvent - fixes #8