Three-year-old heads home after miraculous recovery