Look at the lightbox.js library