basic pattern of a node.js module being an event emitter.