title: Google Chrome: SyntaxError: Unexpected end of input
body: <p>I keep on getting this error on chromium but not on Firefox n its driving me nuts because I cant find a solution despite searching for hours now. I basically get JSON from the server and then wanna insert it into DOM. Here's my code...</p>
  
  <pre><code>function lookup(inputString){
      if(inputString.length == 0){        //hide suggestions
          $('#suggestions').empty()
                   .fadeOut();
           }
      else{           //make an AJAX call
           $.ajax({
              type: 'GET',
              url: '{% url "search.views.search" inputString="xyz" %}'.replace("xyz", inputString.toString()),
              dataType: 'json',
                  success: function(search_results){
              suggestions = JSON.parse(JSON.stringify(search_results));
                          alert(suggestions[0].name);
  
                      }
                  })
              }
           }
  </code></pre>