To make batteries last longer, scientists replace rigid materials to make them self-healing.