Inherit from the Raw constructor's prototype, so we can add the correct then method.
Raw
then
Assign the newly extended Raw constructor to the client object.
Inherit from the
Rawconstructor's prototype, so we can add the correctthenmethod.