How to get current url with or without query string example jQuery