a simple node.js di, using coroutines