Conway's game of life implemented in js