Watford came from behind to earn a 2-1 victory at Huddersfield, moving up to fourth in the Sky Bet Championship table as a result.