Javascript groupby and sum key value

visit shbcf.ru