switch to require.js