javascript get current url without parameters