Use Universal Module Definition to work with Node.js and AMD
Merge pull request #1 from conradz/master

Use UMD to support Node.js, AMD, and browser globals