Battling through a sprained knee and cramping forearm, Mac Jones threw for 342 yards and two touchdowns to lead the Niners past the Rams 26-23 in overtime on Thursday night.