a ai evolution program in js