JS for adding category param to querystring