updated version, dropped dom events for custom event emitter class