diff --git a/skills/embedded-captions/scripts/preview-frames.cjs b/skills/embedded-captions/scripts/preview-frames.cjs
index 56131d7bfd..43265de85f 100644
--- a/skills/embedded-captions/scripts/preview-frames.cjs
+++ b/skills/embedded-captions/scripts/preview-frames.cjs
@@ -23,6 +23,15 @@
const path = require("path");
const fs = require("fs");
const os = require("os");
+const { pathToFileURL } = require("url");
+
+function stripGsapSri(html) {
+ return html.replace(/
+
+ `;
+ const result = stripGsapSri(html);
+
+ assert.match(result, /gsap\.min\.js"><\/script>/);
+ assert.match(result, /app\.js" integrity="sha384-app" crossorigin="anonymous"/);
+ assert.doesNotMatch(result.match(/