JavaScript :: set checkboxes in groups to select “all” or remove “all” for use with filters

For use with multiple sets of Isotope filters. Select "all" by default, but if a filter is selected then remove the checkbox selection from all. If no filters are selected, choose "all" for the particular data-group. There is a dependency on the jQuery version. New versions of jQuery use prop to set the checkbox to [...]