JavaScript implementation of the Promises/A+ spec