Adding support for using this as a node.js plugin.

To be clear, this same code works in a browser and in node.js.
package.json and node.js (the file) are specific to the node integration.