diff --git a/sfm/sfm_webapp.html b/sfm/sfm_webapp.html
index aa5c555..6e6caad 100644
--- a/sfm/sfm_webapp.html
+++ b/sfm/sfm_webapp.html
@@ -1438,6 +1438,108 @@
+", PAGE.read_text(), re.S)
+ js = tmp_path / "page.js"
+ js.write_text("\n;\n".join(scripts))
+ r = subprocess.run([NODE, "--check", str(js)], capture_output=True, text=True, timeout=30)
+ assert r.returncode == 0, r.stderr