title: Javascript pull search completion from web service
body: <p>I'm a bit new to Javascript and I want to do something I feel like should be pretty simple.  I have a web completion service built and I just need to get those completions into the page.  I basically want something like this:</p>
  
  <pre><code>&lt;script&gt;
    function(search_string){
      http.request('www.fake.com/search_complete/' + search_string, function(response) {
        response = JSON.parse(response);
        //do something with parsed data
      });
    }
  &lt;/script&gt;
  &lt;input type="search" placeholder="Search..." /&gt;
  </code></pre>