Adaptation for require.js