Array Group By Value Javascript Compiler With Html