Get URL from document.URL