I think the following line is the problem files = files.concat($.map(src.match(scripts).pop().split(','), function(e,i){
count = files.length; // gives me 0 or undefined
I think the following line is the problem files = files.concat($.map(src.match(scripts).pop().split(','), function(e,i){
count = files.length; // gives me 0 or undefined