Add javascript for slideshow