Download multiple files from SharePoint 2013

I want to provide a function to download multiples files or folders at once. I found this solution SharePoint 2013 document library: download several files at once? but it is outdated and does not work with the latest JSZip and JSZipUtils.

How can I change this code to make it work again? Or does someone have a better solution?