modify require.js and create loader