facetwp make search filters on listify home page visible after loading

<?php
/**
 ** enable filtering on load of map
 **/
add_action( 'wp_footer', function() {
	?>
    <script>
        (function($) {
            $(document).on('facetwp-loaded', function() {
		$( '.search-filters-home' ).css( "visibility", "visible" );
            });
        })(jQuery);
    </script>
	<?php
}, 100 );