I have the following code:
<script>
document.writeln('<SCRIPT>window.JXG || document.write(\'\x3Cscript type="text/javascript" src="foo.js">\x3C/script>\')<\/SCRIPT>');
</script>
Which trows me a "unterminated string literal" SyntaxError, i can not imagine what i could possibly change that it will work. Someone has any clue how to solve this?