Implement setitem in node.js output