Fix require.js implementation

Runs successfully