Adds init callback to the Promise constructor