code: function extractScriptNames() {
    console.log("Extracting script file names from index.html");
  
    var regexScriptName = /<script src="(.*?)"><\/script>/g;
    var scriptSection = regexScriptSection.exec(indexFile)[1];
  
    // extract script names
    var names = []; 
    var match;
    while ((match = regexScriptName.exec(scriptSection)) != null) {
      var script = match[1];
      names.push(script);
    }
      
    return names;
  }
docs: find the scripts in index.html