JS workaround for WebDriver bug #284 showModalDialog using Firefox browser