I have a list of js files:

1.js
2.js
3.js
4.js
5.js
6.js
etc

I want to load it on order, from 1 to 6. If I do it this way:

Code:
yepnope({
  load: '1.js',
  complete: function() {
    next();
  },
});
function next(){
yepnope({
  load: '2.js',
  complete: function() {
    next2();
  },
});
}
I will be coding ridicules much codes. Does anyone have an solution?