This is a promise implementation, to use as a fallback, for when there is no default Promise.