Cards beat Giants 8-3 to go up 3-1 in NLCS