JavaScript implementation of a very primitive Slide Show