Datatables plugin

I’m coming from DokuWiki, on which I use the famous jquery library datatables, which lets me easily browse, paginate, filter and sort all tables in my documentation.
Is there the possibility that someone builds a plugin for embedding this library in Grav’s capabilities?
Or maybe is it possible someway to add the js library in the template, in order to get it in the pages’ headers as script tags?
Thanks and regards,
Nesaver, Rome (IT)

It’s certainly possible to create a plugin. I don’t think one exists yet, but there is one for the similar table sorter:

You could use this as a base to build a plugin for data tables.