how to get current url with query string in javascript