Updated support for require.js