[javascript] Is there any method to get the URL without query string?