JS: fix comments in allreduce and gd