Bolton Wanderers staged a stunning late fightback to beat promotion rivals Huddersfield Town 2-1 and secure their first away win since April.