Huddersfield beat promotion rivals Luton to go third