require.js implementation