Modified to use require.js
Modified to use require.js