Document.write() throws Unexpected token “ILLEGAL”

Before you ask, I already searched a lot in Stack Overflow and I google it thousand times. Any other case I ever seen here helped me. Let’s go to my problem: I’m trying to use the following script …