Because the string "" is included with document.write(), the script tag is closed before reaching its natural end. That means you'll see some extra text here:
document.write()