rewrite Node.js