Viral remnants in the genome guides embryo development after infecting primitive organisms millions of years ago