dsr prototype in node.js