Added definition for Event and EventInit