Resolved bug in exporting for node

When compiled to javascript, the global node variable "exports" get overwritten. Renaming it makes it work in node.js / javascript.