<script>
catFilterList = $.grep('<?php echo preg_replace('/\s/', '',$params['filter_categslist']); ?>'.split(';'),function(n){ return n != "" });
</script>
<script>
catFilterList = $.grep('{{ preg_replace('/\s/', '', params['filter_categslist'] ) }}'.split(';'),function(n){ return n != "" });
</script>