]; SLIDES = new slideshow("SLIDES"); SLIDES.prefetch = 1; pictures.forEach(loadOnePic); function loadOnePic(name) { SLIDES.add_slide(s = new slide('Pictures/' + name)); }