added writing via node.js