JS: restore old port number for allreduce and spanning_tree