Game of life in HTML5