Added support for using the JS client library from node.js.