Remove use of require.js specific module loader code

Fixes #393