A Mass. juvenile court judge has returned custody of Connecticut teenager Justina Pelletier -- who has been at the center of a major medical custody dispute -- to her parents, Fox News confirms.

Read more below from FoxNews.com:

The ruling caps a long-running medical custody dispute that began when two highly-respected Boston hospitals clashed over the girl's diagnosis. Justina had been in the custody of the Massachusetts Department of Children and Families ever since Bay State officials charged her parents with "Medical child abuse." The case sparked national outrage, and led Lou and Linda Pelletier, of West Hartford, Conn., to wage a bitter legal battle.   

"We are thrilled that Justina will finally be returning home," read a statement from Liberty Counsel, released moments after the decision was handed down by Massachusetts juvenile court Judge Joseph Johnston. "The family looks forward to putting this 16-month nightmare behind them. Justina and her family now begins the process of healing both physically, emotionally, and spiritually."

The case began when the girl's parents disagreed with a psychiatric diagnosis given by Boston Children's Hospital and said they wanted their daughter returned to her original physician at Tufts Medical Center, who had previously treated Justina for mitochondrial disease, a group of rare genetic disorders affecting cellular energy production. 

In May, Justina was moved from Massachusetts to a facility in Thompson, Conn. Her parents are now able to visit with their daughter, but still angry that she hasn't been returned home.

In a 45-second, videotaped plea, first posted on a Facebook support page last week, Justina is seen sitting in a chair and pleading plaintively with Johnston.

"All I really want is to be with my family and friends," the girl says, her voice faltering at times. "You can do it. You're the one that's judging this. Please let me go home."

In what Justina's attorneys are calling a "dramatic reversal," the Massachusetts DCF filed a motion agreeing that the teenager should be returned to her family. Alec Loftus, a spokesman for Massachusetts Health and Human Services Secretary John Polanowicz, confirmed to FoxNews.com Wednesday that both parties are in agreement.

"We are pleased that the family has engaged around the reunification plan and we have filed papers in court to support our shared goal of bringing Justina home," he said in an email. 

Attorneys representing Justina filed a subsequent motion Tuesday requesting that Johnston expedite a ruling "because all parties are in agreement," said Mat Staver, founder and chairman of Liberty Counsel, which represents the Pelletier family. 

According to sources close to the case, Johnston issued a June 13 deadline for all paperwork to be filed and indicated a ruling will be made on or before June 20. 

Staver claims that DCF's concession "completely undercuts their argument." 

"She's now getting treatment from Tuft’s medical providers and they’ve agreed to return her to her family," Staver told FoxNews.com. "This really cuts out the basis for why they took her in the first place."

"We're waiting on the judge. At this point, there is no reason to delay," he said. "There’s no reason why he can't act immediately."

The emotional toll on Justina and her family is one that cannot be measured, Staver said. 

"Every hour she's not back with her family is an hour she can't ever get back," he said. "Once she does get home, she’ll have a long road to recovery -- physically, mentally and spiritually."

Justina has missed out on two years of education, Staver said, and went from becoming a competitive figure skater to being confined in a wheelchair. 

Lou Pelletier, meanwhile, said he remains skeptical of the judge, after so many legal hurdles, and will "jump for joy once she is released home."

"Actions speak louder than words," Pelletier said.