Fix example with promise wrapper.
Merge pull request #16 from GermanBluefox/master

Fix example with promise wrapper.