I came across this example before when I was writing a small genetic algorithm library in js. https://github.com/koryk/evolvejs
I wrote a few examples as well. tic-tac-toe: http://www.korykirk.com/evolvejs/examples/tic-tac-toe/tic-ta...
circle: http://www.korykirk.com/evolvejs/examples/circle/circlega.ht...