Insert value into field before and after specific string
Sounds like you should be parsing the field with a regex function that matches the content between the script tags. Then you can rebuild your string and update the row.

http://regexr.com/3du5i for an example