Require.js implementation