Get the contents of a text file into a javascript variable
<p>I'm working with a desktop notification. I'm using this code to show it, and its working fine:</p>

<pre><code>// If the user is okay, let's create a notification
if (permission === "granted") {
  var options = {
    body: "This is the body of the notification",
    icon: "icon.jpg",
    dir : "ltr"
  };
  var notification = new Notification("Hi there",options);
}
</code></pre>

<p>But how can I fetch data from a text file into <code>options.body</code>?</p>