Conoway's Game of Life implemented in Javascript