A JavaScript slideshow constructor with support for both click and touch events.