fixed require.js support