Update galleryPrototype.js