The Islamic State might be losing the battles in Syria and Iraq, but it's winning the war everywhere else.