edited js file to get clearing slideshow to work