AMD and browser global support
Merge pull request #3 from guybedford/master

UMD support