jim Otis scored two touchdowns, including the game-winner with 38 seconds left to play, and Jim Hart passed 69 yards to Mel Gray for a third score as St. Louis scored 21 second-half points for a 21-16 victory over the Philadelphia Eagles today.

Hart, who had only 27 yards passing in the first half, finish with 13 completions in 27 attempts for 240 yards.

On the final touchdown march, Hart his four passes for 52 yards, including a 12-yarder to Gray that put St. Louis on the Eagles' 13 with two minutes left. Otis, who had 97 yards in 18 carries, ran a yard for his second score three plays later as St. Louis took the lead for the first time in the game.

The slumbering Cardinal offense came to a rude awakening midway through the third period after Ron Jaworski threw a 15-yard scoring pass to Charles Smith for a 16-0 Philadophia lead. Eagle safety Randy Logan began the scoring march by intercepting a Hart pass at the St. Louis 46.

Hart, who hit only three of 10 passes in the first half, moved the offense 26 yards with two passes. Otis, starting in place of the injured Wayne Morris, ran 25 yards around right end to put St. Louis back into the game at 16-7 with six minutes left in the third quarter.

The St. Louis defense got the ball back and Hart again went to work. On second and 11, he found Gray streaking across the middle and the 69-yard scoring play put St. Louis two points behind at 16-14 just three minutes after Otis' initial score.

The victory left St. Louis with a 7-3 record and a lead in the race for an NFC wild-card berth. The Eagles dropped to 3-7.

Jaworski, passed 13 yards to Harold Carmichael for a touchdown with a little more than a minute left in the opening half and newly signed Ove Johannson added a 32-yard field goal a second before halftime to give the Eagles a 9-0 lead. Johannson, signed after the Eagles fired Horst Muhlmann, missed a 26-yard field-goal attempt and had one conversion kick blocked.