redid in node.js