Automatically expand checked hierarchical checkboxes

<script>
document.addEventListener('facetwp-loaded', function() {
    fUtil('.facetwp-checkbox.checked > .facetwp-expand').trigger('click');
});
</script>