Add the script into your html file with the list you wish to filter, ideally at the bottom of the page just before the closing tag.
<script type="text/javascript" src="verboseES5.js"></script>Call the filter function passing through the ID for the text input and the class name on all the list items.
<script>
filterList('filterInput', 'collection-item');
</script>https://chriswrightft.github.io/vanilla-js-filter-list/index.html