Javascript Photo Slider - created as an interview challenge