In your onLoad callback example you have: obj.createProgress(data[i]); But currently createProgress() accepts three separate arguments, so it actually has to be: obj.createProgress(data[i].name,data[i].path,data[i].size);