Change AMD root export

Use existing `objectToExport` instead of hardcoded value `returnExportsGlobal `