client part of X (Javascript SDK)