Naive implementation of the Promises/A+ specification