implemented use of require.js