Perhaps we can write a util function that extracts all script tags from a piece of HTML?