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