Seems like you have a library module that's expect...
# suitescript
e
Seems like you have a library module that's expecting to be run in a browser and referencing
document