This seems a bit excessive. I think the only 3 js files you need for this widget are jQuery, lodash and jQuery ui. So instead of globbing through a directory and adding everything, you should just be able to add those 2 minified files.

I'm also curious to know why you chose this approach over a CDN link. I'm not sure one is right and the other is wrong, but I'd like to hear your reasons.