added click event functionality to the lightbox object, lightboxes can be closed on click