Simplified Gallery template and JS files