Improved facet search JS