export.js: Export in all CommonJS environments

Closes #521
This should throw an error immediately, not just when the `load` function is invoked eventually.