filter' + filterBtn.filters.indexOf(filter) + '=' + filter;      }      url = url + filterParams;    }    // Add the final URL to the button    button.href = url; }