Get Values From Object Array Javascript Function Parameters