Node.js Rewrite