Masteroffoxhounds led the way in the John Henry Turf Championship (G2T) and had just enough left to hang on at the end for the victory.