Depending on what browsers you're trying to support you should look into history.replaceState
So you'd do something like:
history.replaceState(null, null, location.href + queryString);
And of course you would fill in the null
arguments accordingly if needed.