Change AMD root export

Use existing `objectToExport` instead of hardcoded value `returnExportsGlobal `
Merge pull request #9 from stephanebachelier/master

Change AMD root export