Adding support for UMD structure and therefore require.js