Utility library for JavaScript promises