Create Image slideshow in Javascript( Work in progress)