Neilo:
Just on a whim, once I saw the problem with the path statements on the index.php page of the new folder, I decided to go in and just change the number of icons in the gallery.js page of the original, and use that one in the path.
Now everything works fine.
It appears there might be a problem in the duplication of the folder and the code that is inserted in the index page--or I did something wrong when I did it. I tried twice, and got the same thing.