clean url in plain js code example
Example: javascript to get uri
var newURL = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname + window.location.search
var newURL = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname + window.location.search