Genetic algorithms demo in javascript