Added CommonJS support
Changed to UMD spec
Merge pull request #5 from bpeacock/master

Added CommonJS support (Issue #4)