JS: added more comments in allreduce