Have updated to include the options.data property so that repeated modals in foreach loops or templates can have unique data applied to them in the callbacks.