Ensure promise example works out of the box

Updated with feedback from @twokul & @stefanpenner