JS Image Carousel Attempt 5

Fixed JS image carousel function to reset array at end of array.