Gaston Ramirez stars as Middlesbrough beat Huddersfield to move within just one point of Championship leaders Burnley.