A controversial injury-time winning goal from substitute Collin Quaner lifted Huddersfield to the brink of a guaranteed place in the play-offs as they seek a return to the to flight for the first time in 45 years.