I copied this code to achieve addition of query parameters to location.href
I then modified the code (barely) to drop parameters. It works ok, but I can\'t get to dro