Conway's game of life written in JavaScript