Cristian Javier took a one-hitter into the sixth inning and Chas McCormick hit a two-run homer as the Houston Astros defeated the New York Yankees 5-0 to bring themselves within a game of the World Series.