title: loading an array from text file in javascript
body: <p>I try to do some autocomplete on my site.
  I found solution using jQuery:</p>
  
  <pre><code>$(function() {
      var availableTags = [
        "ActionScript",
        "AppleScript",
        "Asp",
        "BASIC",
        "C",
        "C++",
        "Clojure",
        "COBOL",
        "ColdFusion",
        "Erlang",
        "Fortran",
        "Groovy",
        "Haskell",
        "Java",
        "JavaScript",
        "Lisp",
        "Perl",
        "PHP",
        "Python",
        "Ruby",
        "Scala",
        "Scheme"
      ];
      $( "#tags" ).autocomplete({
        source: availableTags
      });
  });
  </code></pre>
  
  <p>And it works fine, but I need to load data form text file. I need a way to make <code>var availableTags</code> from text like:</p>
  
  <pre><code>ruby
  java
  javascript
  </code></pre>
  
  <p>and so on.</p>