Fightback: Djokovic won the last two sets to seal the win in dramatic fashion