Update regex to match closing script tag

We now dont match for an immediate close of the tag