put the AMD definitions before the commonjs - some build tools expose am exports object
Merge pull request #22 from phated/master

put the AMD definitions before CommonJS