full transition to require.js