modified javascript and html, slideshow