Remove only affected parameters
Search the complete url for utm parameters

It might be that there is a hash in the url. location.search won't
return any parameters now. Thats why I would test the complete url.