update client JS