Celtic closed the gap to league leaders Hearts to three points as Wilfried Nancy's side came from behind twice to beat Livingston 4-2.