I'm using ace editor to edit javascript scripts and I seem to get an error on loading the webpage when I try to add set the value of a variable to `"<script>" + jse.getValue() + "</script>";`
I have also tried adding `.toString()` at the end of the editor value
and `jse.value()`
edit: I also tried `"<script>" + jse.getSession().getValue() + "</script>";`

Any help would be greatly appreciated.

Update: I have found that its the `<script>` tag causing the issue I renamed the tag to something else and it worked fine, however I am still confused as to how I can make this work? I'm basically setting the contents of an iframe `<body>` but need to keep the contents of `<body><script>`