Allow use from node.js

With just a minor tweak, we should be able to use this both in Node.js and the browsers.

Commonjs allows us to export the namespace this way, without having to call `module.exports`.