title: Crossrider Extension API - var blank unless I call alert(var) after setting it? JS scope issue?
body: <p>I am using a simple get request, similar to the one in the example provided by Crossrider, to get some content from the related site. The content returned should look like this:</p>
  
  <pre><code>"Your list: 1-Item,2-Salmon,3-Halibut";
  </code></pre>
  
  <p>When I use an alert(); method to display the GET content immediately after retrieving it, everything works great (minus the alert popup everytime I load a webpage). However, I have found that if I remove the alert statement that was in the Crossrider example, the myList var will be blank (see code below).</p>
  
  <pre><code>appAPI.ready(function($) {
      // Async GET Request
      // appAPI.request.get({url, onSuccess, onFailure, additionalRequestHeaders}})
      function get_wishlists(){
          appAPI.request.get({
              url: 'http://mysite.local/list/view/1?time='+$.now(),
              onSuccess: function(response, additionalInfo) {
                  myList = String($(response).text());
                  return myList;
              },
              onFailure: function(httpCode) {
                  //alert('Error - Could not acquire a list of your wishlists. HTTP Code: ' + httpCode);
                  return null;
              }
          });
      }
      var myList = get_list();
      // myList will be blank without this!
      alert(myList);
      if (myList.indexOf('Your list:')){
          myList = myList.substr(myList.indexOf('Your list:')+10);
          myList = myList.split(',');
      } else {
          alert('Could not get list from your account, server response: '+myList);
      }
  });
  </code></pre>
  
  <p>My question is, why is myList coming out blank when I don't immediately display it in an alert box, and how can I keep it from doing this?</p>
  
  <p>EDIT: Actually, I don't even have to alert the myList var, but can call alert('got data'); immediately after setting myList.</p>