updated javascript to fix 2nd slideshow