Photo Gallery Javascript

Fixed a bug in the javascript so if you intentionally click on a photo
it will pause the slideshow to prevent it from switching to a new image