This does not seem to be valid code:
print "document.write('javascript')\;";
This is a print statement generated by PHP that is part of a Javascript script. I need to include a ; at the end of the document.write so I added a . But it doesn't seem to work. What can/should I do?