Using Events In Node.js The Right Way