router for node.js / client