do not use window.URL because Safari WebKit doesn't support it