adding require.js support