Support both AMD or CommonJS by using UMD returnExports

Fixes #9
Merge pull request #12 from rxaviers/fix-9-UMD

Fix 9: Support both AMD or CommonJS by using UMD returnExports