Cowboys beat Eagles 38-33