you might get away with creating the window.docume...
# suitescript
s
you might get away with creating the window.document code you need in a client script and using that in the returned suitelet response