CMS filter by class with custom code

Hello all, I followed this finsweet tutorial https://cmsdocs-howto.webflow.io/filter/example9. On how to filter CMS Collection Lists by class. I want to limit the filter to the div block ‘states-text’, containing the text blocks ‘class’, in the CMS collection. However whenever I add the filterByClass to the custom code, the filters stop working. This is weher I got the custom code from: https://cmsdocs.webflow.io/filter

Here is my site Read-Only: https://preview.webflow.com/preview/forumfuerfragen?utm_medium=preview_link&utm_source=designer&utm_content=forumfuerfragen&preview=1e39a4f93fcf09122dcd1a9c98dee635&mode=preview

If anyone could help it would be really appreciated!

Screenshot 2020-11-14 at 17.54.11