Doncaster boosted their Sky Bet Championship survival hopes with a hard-fought 2-0 win over Huddersfield at the Keepmoat Stadium.