node.js eventemitter api for dom events