title: Trouble performing simple GET request returning JSON with Javascript
body: <p>I'm horrible at Javascript, so sorry in advance for what I'm going to go ahead and assume is an amazingly stupid question.</p>
  
  <p>I'm simply trying to perform a GET request to GitHub's public repo API for a given user, and return the value as JSON.</p>
  
  <p>Here's the function I'm trying to use:</p>
  
  <pre><code>function get_github_public_repos(username) {
  
      var the_url = "http://github.com/api/v2/json/repos/show/" + username
  
      $.ajax({
        url: the_url,
        dataType: 'json',
        type: 'get',
        success: function(data) {
          alert('raw data: ' + data)
          var json_response = $.parseJSON(data);
          alert(json_response);
        }
      });
  }
  </code></pre>
  
  <p>This is returning Null for data. And in the console, I see <code>Failed to load resource: cancelled</code>. I know the URL is correct, because if I run <code>curl</code> on the url, it returns the expected data.</p>