Reformatted.
Make BootstrapDialog.show() BootstrapDialog.alert() BootstrapDialog.confirm() return the created dialog instance.