Fixed exports for requirejs modules.

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