Added documentation to node.js generation scripts