2-way router for node.js