Life support to end for brain dead girl Jahi McMath on December 30 in Oakland, California Machines to be turned off ... Jahi McMath remains on life support at Children's Hospital Oakland but will have life support turned off on December 30. A US family that lost its bid to keep a 13-year-old girl on life support says "there is still time for a miracle." Alameda County Superior Court Judge Evelio Grillo has ruled that Jahi McMath, who was declared brain dead after suffering complications following a tonsillectomy, can be removed from the ventilator keeping her body functioning. But the judge gave Jahi's family until 5pm (9am AEDT) December 30 to file an appeal. Until then, she will stay on life support at Children's Hospital Oakland, California. Relatives said the family has not decided if it would keep fighting. "There is still time for a miracle," Omari Sealey, the girl's uncle, said Tuesday. He said the family would decide later whether to appeal or to allow the hospital to remove the girl from a ventilator. "Prayers are more important than ever before," Mr Sealey said. Because the clock is ticking. Jahi's mother, Nailah Winkfield, didn't attend the court hearing Tuesday, staying by her daughter's side in the hospital. Hard to handle ... In this December 16 photo, Nailah Winkfield, mother of 13-year-old Jahi McMath, wipes her face while speaking to reporters with her husband, Martin Winkfield. Mr Sealey said Ms Winkfield and other family members have remained with the teen since complications arose December 9 after a tonsillectomy. "Room 325 of Children's Hospital is our new home," he said. Mr Sealey held hands with Jahi's grandmother Sandra Chatman; Jahi's stepfather, Martin Winkfield; and the family's lawyer, Christopher Dolan, as the judge ruled. Mr Grillo based his decision on the conclusions of two doctors, court-appointed Dr. Paul Fisher of Stanford University and the hospital's Dr. Robin Shanahan. Dr Fisher examined the girl for several hours on Monday and reported to the judge on Tuesday that the teen was brain dead, the same conclusion Dr Shanahan reached. Mr Grillo said he had no other choice but to allow the hospital to remove the ventilator. "I wish I could fix it, but I can't," he said. The hospital had argued that the teen had no chance of recovery since all brain function had ceased. "Our sincere hope is that the family finds peace and can come to grips with the judge's decision," hospital attorney Doug Strauss said outside court after Mr Grillo's ruling. Jahi's family has been fighting with hospital administrators over keeping her on a ventilator since the teen suffered cardiac arrest after bleeding profusely following her operation. The family said that as long as the teen was breathing, there was hope of recovery. The family also demanded an independent examination. It has said it believes Jahi is still alive and that the hospital should not remove her from the ventilator without its permission. Hospital lawyers disagreed. "Because Ms. McMath is dead, practically and legally, there is no course of medical treatment to continue or discontinue; there is nothing to which the family's consent is applicable," the hospital said in a court filing on Tuesday. The case is now out of Mr Grillo's court and the decision will be up to the California Court of Appeal if the family decides to pursue its legal case to keep Jahi on the ventilator. The family thanked Dr Fisher, the court-appointed doctor, for what it called a thorough examination of Jahi, and he shook the hand of each family member before leaving court. "I don't know if we have accepted his decision yet," said Mr Sealey, Jahi's uncle. There's still time for a miracle from now and until December 30. The family had demanded that another doctor of its choosing examine Jahi. In ruling on Tuesday, the judge made no mention of the family's desire for Dr. Paul Byrne, a pediatric professor at the University of Toledo, to examine the teen. Dr Byrne is the co-editor of the 2001 book Beyond Brain Death, which presents a variety of arguments against using brain-based criteria for declaring a person dead. In a phone interview, Dr Byrne said he could not comment in detail because he had not seen any of Jahi's medical records. Arthur L. Caplan, who leads the Division of Medical Ethics at NYU Langone Medical Centre and is not involved in Jahi's case, told The Associated Press that once brain death has been declared, a hospital is under no obligation to keep a patient on a ventilator.