refactored to be closer to Node.js
refactored to be closer to Node.js
renamed EventHandler back to EventListener