Adding support for node.js

Simple changes to make the library more usable with node.js. If you create an account in NPM you may be able to publish the module but I haven't tried this. Look in package.json to adjust any parameters before publishing.