I come to a forum like this precisely because I suffer "outrageous ignorance" ~ if I knew what I was doing, I'd figure it out for myself. For the record, I did try your solution but it did not work. I made the assumption that the problem is with me, not with your script, so I did not mention it out of courtesy.
I saved your script exactly as written as:
(I know for a fact that each of these ss-x.js will work when referenced directly, as I used them repeatedly).
The photos were referenced in each ss-x.js to a separate folder, as in ../slides/slide1.jpg
With all that, I got no error message, no slides, nothing but an emply space on the html page.
Anyway, sorry to have offended you ~ was not my intention ~ if the mods want to delete the thread before anyone else gets upset, please do so.