Export from require.js as a proper module

Fixes #97