Fix gallery JS path prefix