Any chance that we can do this with jQuery instead of a regex, similar to how we now do it for JS files?