Dodgers defeat sloppy Cardinals in Game 3