updated js client