NF: JS helper functions to remove & replace query strings