Made the return type explicit on promise
Merge pull request #33 from w3c/fix_promises

Made the return type explicit on promise