looping over opts.downloadClasses

opts.downloadClasses is an array - loop needs .length