title: Getting text from external (local) file with jQuery
body: <p>So I aim to get some text from "clownJokes.txt" which is an external .txt and put that text into a variable inside my .js file. </p>
  
  <p>Currently I know that $.get() from JQUERY calls Ajax and retrieves the file you want from the server. But I am searching for a way to do that locally, is there any way to do that?</p>
  
  <pre><code>$(document).ready(function(){
      $.get('clownJokes.txt', function(data){
          doSomethingWithData(data);
      }, 'text')
  })
  </code></pre>
  
  <p>This is how it would look if I was to retrieve it from the server. </p>
  
  <p>Thanks in advance!</p>