replace endsWith with indexOf to satisfy IE11, fixes #1050
replace endsWith with indexOf to satisfy IE11, fixes #1050

kobotoolbox/kpi,onaio/kpi,kobotoolbox/kpi,kobotoolbox/kpi,onaio/kpi,onaio/kpi,kobotoolbox/kpi,onaio/kpi,kobotoolbox/kpi