Buggie movie could some one look at my script

My randon picker for photos works until it craps out.
Then it seems to be looking for a “file:///” which it doesn’t find.
Also, the site always locks up when moving from one specific area and to another. Launch then, click on Personal Projects and then click on Headshots. = site craps out.
could someone suggest some fixes or what to look for - I’m outta steam on this. thanks… it’s online at Davidmacg.com
thanks
I’ll email anyone my script for your imput (or the whole site)
thanks
d_mac