One more thing, I don't think INS in YVR is open during the time when CX flight arrives from JFK. Option 1 from PointWasel may not work unless you want to hang around the INS waiting area for a few hours. The security may not allow it anyway. You may have no choice but to pass Canadian immigration, then go through US INS after it opens.