sample client js