Packers surge to edge Cowboys 37-36