Updated scripts to require.js