CustomEvent is a library for progamming JavaScript in an event-driven manner.