Update Gallery.js