integrate self require.js copy