a
r
the code you shared is not the cause of the error. you're going to want to use the + icon and Create a Text Snippet. Then you can select JavaScript as the language.
it's complaining about
response.write
. you're not passing the
output
property.