Simple JavaScript Class for doing inheritance, OOP, event-driven