A function / method Promise wrapper utility for JavaScript