500
document is not defined