export.js: Export in all CommonJS environments

Closes #521
For node.js, we don't need the double export. Let's do only `module.exports` or fix the comment above.

Either way, let's split the two assignments on two lines to make it more readable.