using regex to get the filename
pattern used does not use multiple variable declarations with commas
forEach loop to get html script tag lines instead of a for loop