Cowboys open with 36-31 victory