export.js: Export in all CommonJS environments

Closes #521
Sure, but since you're checking a variable that you're adding above, let's just fix it now.