Javascipt: Split big arrays to smaller
var splitArray = []; while(yourArray.length) { splitArray.push( yourArray.splice(0,10) ); }