An implementation of the standard Event and EventTarget interfaces in pure JS