Update Document-createEvent.js for spec changes.