Remove query string from JS