Javascript Object Array Get Distinct Values From Column To Rows