Nationals improve to .500 by beating Mariners 2-1