Fixed exports for requirejs modules.

Fixes a bug which wouldn't let requirejs import modules exported by requirements.js