(function(module) {
  var repos = {};

  repos.all = [];

  repos.requestRepos = function(callback) {
    $.ajax({
      url: 'github.com/user/repos?per_page=10&sorted=updated',
      type: 'GET',
      // headers: {'Authorization': 'token ' + githubToken},
      success: function(data) {
        repos.all = data;
        callback(data);
      }
    });
  };

  repos.with = function(attr) {
    return repos.all.filter(function(repo) {
      return repo[attr];
    });
  };

  module.repos = repos;
})(window);

@@ -343,24 +343,39 @@
     %7D%0A    %7D)
+.done(callback)
 ;%0A  %7D;%0A%0A  re

update repos.js