Make promises work in the browser, too
Merge pull request #1 from aredridel/patch-1

Make promises work in the browser, too