Group Array By Field Javascript Tutorial