export.js: Export in all CommonJS environments

Closes #521
I still can't tell what the purpose of this is.