I added this JS to include 'category' in the query string if it's specified.