I have created a function to take an element in the DOM and call the Bootstrap modal() function against it
modal()
var consentModal = new MyModal(modalTi