Since the version 6 there is a strange behavior when editing a text box used to insert code.
When you open the text clicking in the box Content/Edit Text, it opens as Rich Text, not as HTML as in previous version.
If you have a JS code, when you pass to plan HTML it adds some
or
so it broke the script.
Kindest regards.