the loading part is tricky since the libs includes multiple files, thats why I just wrote "somes other issues to get it working", and I am not sure I used the best approach 🙂
On github, the usage is:
<script src="path_to/node_modules/tablefilter/dist/tablefilter/tablefilter.js"></script>
<script>
var tf = new TableFilter(document.querySelector('.my-table'), {
base_path: 'path/to/my/scripts/tablefilter/'
});
tf.init();
</script>
so I wrote another suitelet that would serve the files from file cabinet, like base_path became "...
script.nl?scriptid=1&deployid=1&path=/tablefilter/" where the file (and path) becomes appended to this url. Then chroot that path into the filecabinet tablefilter folder. In the end, i copy pasted the entirety of the lib into a folder in file cabinet, and made it accessible trough the base_path reference.