Js Create Array From Object Values In A Relationship