Cowboys dominate 49ers 40-10 behind 3 Elliott touchdowns