Js And Loop Through An Array Of Objects