Quick implementation of Conway's game of life in Javascript