const fs = require('fs');
let js = fs.readFileSync('app_final.js', 'utf8');

js = js.replace(/\?\.forEach\(/g, '.forEach(');

fs.writeFileSync('app_final.js', js, 'utf8');
console.log('Reverted ?.forEach safely!');
