Added support for require.js