Re #359 - BUG: Images open up in a new browser tab and not in the lightbox

* adjusted carousels.addImagesToLightbox
* did a bit of script clean-up