update js client, protocol must be changed appropriately