Revert "rip out unused require.js stuff"

This reverts commit 7fad85be1ccc7a7719eeea4fde0a6169abf16db8.
remove unused stuff