A helper library for working with JS Promises