export.js: Export in all CommonJS environments

Closes #521
Why is this needed? Can't you just declare a variable (with a different name) that gets assigned the argument of this function?