Adds support for require.js.