Replacing jQuery dialogs with Bootstrap modals