add require.js support