Updated require.js functionality due to latest build system