updated to require.js