Incorporated JavaScript into Gallery.

When clicking the images in the gallery a div will now appear with the
clicked image inside the current page to avoid extra pages/tabs!