title: Getting Javascript files using Rawgit
body: <p>I'm trying to include a JS file in my website via Ajax by getting it from one of my GitHub repositories, using Rawgit. For some reason, it doesn't work when I use the development or production URLs, but when I use the raw version of my files directly from Github, the problem stops. I don't experience any problems when I use the development URL for a CSS file. Does anyone know why this happens?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>$.get("https://rawgit.com/Larpee/The-Khan-Quiz/master/game.js", function (game) {
      var sketchProc = function (processingInstance) {
          with (processingInstance) {
              size(400, 400);
              frameRate(30);
              eval(game);
          }
      };
  
      var canvas = document.getElementById("game");
      var processingInstance = new Processing(canvas, sketchProc);
  });
  </code></pre>
  
  <p><strong>Update:</strong> I think the problem occurs because GitHub (not Rawgit), serves the files as <code>.txt</code> files, while RawGit serves them as <code>.js</code>.</p>
  
  <p>I would still like to receive an explanation for why getting my JavaScript files with a <code>.js</code> extension isn't working, though</p>