added a quick hack to close dialogs if a click occurs outside the dialog

 It's my first hack to close a tooltipster-dialog when a click occurs outside a dialog. I've tested with interactive dialogs where autoClose is false. This should still be tested with interactive hover dialogs before exposing it to the community.