how to check the url that someones in js code example Example: javascript get url path window.location.pathname