Dodgers capitalize on Giants' mistakes