JS: update port in allreduce