To prevent this from happening in the future, you will need to add a Javascript guard around the Javascript you add to the content page.

The guard will look as so: [[?x3301x1017x::x[[S4]]x::::<script></script>]]