Miniscule Promises/A+ implementation