use new js client library