doctype for capturing was missing spaces
document.write, etc is forbidden