title: Javascript code, unterminated string literal with included javascript
body: <p>This script works fine, unless the included file contains javascript, then it breaks with the "unterminated string" literal error. Removing spaces and linebreaks does not cure the problem.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var myArray = [
  'url',
  'url2',
  'url3',
  'url4',
  'url5',
  ];
  var i, numDomains = myArray.length, found = false;
  for (i = 0; i &lt; numDomains; i++) {
  if (document.referrer.indexOf(myArray[i]) &gt; -1) {
  found = true;
  }
  }
  document.write((found ? '&lt;?php include("file1.php"); ?&gt;' : '&lt;?php include("file2.php"); ?&gt;'));
  &lt;/script&gt;
  </code></pre>
  
  <p>A good solution would be where the included file can be any normal html file.</p>
  
  <p>This is the output of the offending file: </p>
  
  <pre><code>&lt;!-- google_ad_client = "pub-0705348955426556";/* ORG 468x60 */ google_ad_slot =     "2106718798";google_ad_width = 468;google_ad_height = 60;
  //--&gt;
  &lt;/script&gt;
  &lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
  &lt;/script&gt;&lt;script src="http://googleads.g.doubleclick.net/pagead/test_domain.js"&gt;&lt;/scri
  </code></pre>