Cowboys take division lead with win over Philadelphia