So I have this simple javascript function which generates a random image from a folder to the screen. I tested the function and it works. The problem is when I try to use th