Add wrap client function as a common-js module