A promise for delivery in JavaScript