simple event io in node.js