Game of Life in JavaScript