Allow use from node.js

With just a minor tweak, we should be able to use this both in Node.js and the browsers.