update js client