update the ip address in js.