Update regex to match closing script tag

We now dont match for an immediate close of the tag
Merge pull request #2069 from jsbin/fix/script-escape

Update regex to match closing script tag