for(var i = 1; i <= pageCount; ++i) {
          var jsonRequest = $.getJSON(url2+'&page='+i);
          promises.push( jsonRequest );
        }