JS for with wishlist

<?php
/** triggers yith wish list init after facet reloads **/

add_action( 'facetwp_scripts', function() {
	?>
	<script>
	document.addEventListener('facetwp-loaded', function() {
		/** wishlist */
		jQuery(document).trigger( 'yith_wcwl_init' );
	});
	</script>
	<?php
});