JS: add more listening debug statements in allreduce.cc