JS update to load gallery