fix for JS error on list page for carousel