Anthony,
I'm not too familiar with the gallery code, but it looks to me like the offending code is not in the UV itself, but in the iiif-gallery-component that it includes. Specifically, it appears to be using some kind of template engine here:
My strong suspicion is that whatever template engine is being used relies on eval in some fashion. It would take me more time than I currently have available to figure out exactly what template engine is in use (maybe somebody else here already knows), but I think there are several ways to get around the problem. If the template engine is still being maintained, perhaps there is a newer version we could upgrade to that would sort this out "for free." If not, we're only using templating in this one place, so the code could probably be revised to achieve the same effect in a different way. The ideal solution might be to rewrite the whole component in React, since that seems to be the direction we're generally headed in, but that's obviously a bigger and more time consuming job.
Fixing this was not on our roadmap since I don't think anyone had encountered the problem before -- but it's certainly something we can talk about on the next Community Call. Let me know what you think, and whether you have any time available to help! If you need more input from my end, I can try to find time later in the week to investigate more thoroughly.
- Demian