lifegame by javascript with canvas