added serializing of worm to node.js