Modular and fast Promises implementation for JavaScript