Safari compatibility for window.URL