Group Array Elements Javascript Tutorial Javatpoint