Typescript addeventlistener customevent