fixed JS Client SDK