Update js/gallery.js