Conway's Game Of Life in javascript