node.js prototype api