Revised for require.js