Jaylen Brown poured in 29 points and Payton Pritchard added 24 off the bench as the Boston Celtics squeaked past the Miami Heat 98-96.