URL rewriter for node.js