// yay https://developer.github.com/v3/#cross-origin-resource-sharing

function foo(response) {                                                        
    var meta = response.meta;                                                   
    var data = response.data;                                                   
    console.log(meta);                                                          
    console.log(data);   
    data.forEach(checkForLicense);
}                                                                               
function checkForLicense(){
    console.log(this);
    name = this.name;
    console.log(name);
    url = this.html_url;
    console.log(url);

}

var script = document.createElement('script');                                  
script.src = 'https://api.github.com/users/edunham/repos?callback=foo';                             
                                                                                
document.getElementsByTagName('head')[0].appendChild(script);  

@@ -77,79 +77,26 @@
 ion 
-foo(response) %7B                                                        
+handleRepoList() %7B
 %0A   
@@ -104,242 +104,45 @@
 var 
-me
+da
 ta = 
-response.meta;                                                   %0A    var data = response.data;                                                   %0A    console.log(meta);                                                          
+JSON.parse(this.responseText);
 %0A   
@@ -160,19 +160,16 @@
 g(data);
-   
 %0A    dat
@@ -182,173 +182,83 @@
 ach(
-checkForLicense);%0A%7D                                                                               %0Afunction checkForLicense()%7B%0A    console.log(this);
+learnAboutRepo);%0A%7D%0Afunction learnAboutRepo(repoObj)%7B
 %0A    
+var 
 name = 
-this
+repoObj
 .nam
@@ -291,24 +291,26 @@
     
+var 
 url = 
-this.html_
+repoObj.
 url;
@@ -336,335 +336,420 @@
 l);%0A
-%0A%7D%0A%0Avar script = document.createElement('script'
+    var repoReq = new XMLHttpRequest(
 );
+%0A
     
-                              %0Ascript.src = 'https://api.github.com/users/edunham/repos?callback=foo';                             %0A                                                                                %0Adocument.getElementsByTagName('head')%5B0%5D.appendChild(script);  
+repoReq.onload = digInFiles;%0A    repoReq.open(%22get%22, url, true);%0A    repoReq.send();%0A%7D%0A%0Afunction digInFiles()%7B%0A    var repo = JSON.parse(this.responseText)%0A    console.log(repo);%0A%7D%0A%0Aconsole.log(%22don't worry, it's working%22);%0Avar oReq = new XMLHttpRequest();%0AoReq.onload = handleRepoList;%0AoReq.open(%22get%22, %22https://api.github.com/users/marajade/repos%22, true);%0AoReq.send();%0A
 %0A

switch to mara to hit rate limit slower