const fs = require('fs'); const html = fs.readFileSync('defense_sim.html', 'utf8'); const script = html.match(/