export.js: Export in all CommonJS environments

Closes #521
None of this should be necessary anymore, we only need `root.QUnit`.