Game of life on javaScript/jQuery