title: Javascript code is missing from page source code
body: <p>I have a Javascript code to translate a few parts of my HTML page in other languages. You can read a few more details about it in another question I asked here: <a href="https://stackoverflow.com/q/23593739/2309097">Multilanguage static website with JQuery</a></p>
  
  <p>I have the same Javascript code in every HTML page in my website. In Home page (www.mywebsite.com) works, but in any other longer path (www.mywebsite.com/anotherpage) doesn't work. The weird here is that the code is totally missing from the source code of the page (right click --> view source code)</p>
  
  <p>Here is a part of the code (the whole page is huge and I cannot paste it all)</p>
  
  <pre><code>&lt;html lang="en"&gt;
     &lt;head&gt;   
        &lt;meta charset="utf-8"&gt;
        &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
        &lt;!-- Le styles --&gt;
        &lt;link href="./static/css/bootstrap.min.css" rel="stylesheet"&gt;
        &lt;link href="./static/css/slider.css" rel="stylesheet"&gt;
        &lt;link rel="stylesheet" href="./static/css/font-awesome.css" /&gt;
        &lt;link rel="stylesheet" href="./static/css/jquery-ui.css" /&gt;
  
     &lt;/head&gt;
     &lt;body&gt;
     ....
     &lt;/body&gt;
     &lt;script src="./static/js/jquery.js"&gt;&lt;/script&gt;
     &lt;script src="./static/js/bootstrap.min.js"&gt;&lt;/script&gt;
     &lt;script src="./static/js/bootstrap-slider.js"&gt;&lt;/script&gt;
     &lt;script src="http://code.highcharts.com/highcharts.js"&gt;&lt;/script&gt;
     &lt;script src="./static/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
     ! a few other script codes that works without a problem in this part !
  
     ! this is the one that is missing from the code
     &lt;script type="text/javascript"&gt;
  
        function getCookie(name) {
           var nameEQ = name + "=";
           var ca = document.cookie.split(';');
           for(var i = 0; i &lt; ca.length; i++) {
              var c = ca[i];
              while (c.charAt(0) == ' ') c = c.substring(1, c.length);
              if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
           }
           return null;
        }
  
        $(function() {
  
           var language = getCookie("language");
           if (language == null) {
              var language = 'English'
           }
           alert(language)
           $.ajax({
              url: './static/languages/languages.xml',
              success: function(xml) {
                 $(xml).find('translation').each(function(){
                    var id = $(this).attr('id');
                    var text = $(this).find(language).text();
                    $("." + id).html(text);
                 });
              }
           });
        });
  
     &lt;/script&gt;
  </code></pre>
  
  <p>I have tried to put the script code on the top of the page, but I have the same problem. I have tried to put the full url on xml file without a success. I don't have any error on the console and the script doesn't run neither it is on the page source code.</p>
  
  <p><strong>SOLVED:</strong></p>
  
  <p>If I load the script code from an external file, then it works. The external file has exactly the same code, so it wasn't a typographic error.</p>