Allow HTML5 Dialog show() and showModal() to be called