update client side js