export.js: Export in all CommonJS environments

Closes #521
Also since we're not using AMD in these tests, why do we need to check for that anyway?