updating node.js prototype example