old_contents: var apiKey = require('./../.env').apiKey;
  
  
  function GithubSearch() {
  
  }
  
  GithubSearch.prototype.getRepos = function(userName) {
    $.get('https://api.github.com/users/' + userName + '?access_token=' + apiKey).then(function(response){
       console.log(response);
     }).fail(function(error){
       console.log(error.responseJSON.message);
     });
  };
  
  exports.searchModule = GithubSearch;
  
new_contents: var apiKey = require('./../.env').apiKey;
  
  
  function GithubSearch() {
  
  }
  
  GithubSearch.prototype.getRepos = function(userName, displayName) {
    $.get('https://api.github.com/users/' + userName + '?access_token=' + apiKey).then(function(response){
       displayName(response.name);
     }).fail(function(error){
       console.log(error.responseJSON.message);
     });
  // user name
     $.get('https://api.github.com/users/' + userName + '/repos?access_token=' + apiKey).then(function(response){
       for (var index = 0; index <= response.length; index++ ) {
         console.log(response[index].name);
         console.log(response[index].description);
       }
     });
  };
  
  
  exports.searchModule = GithubSearch;
  
subject: remove console log; display to interfacefile