Some javascript code to simulate evolutionary growth of a genotype through mutative states using Mendelian inheritance