html5 implementation of cornwall game of life