simplified timeout hack for Safari.