Js Array Map Return Object From Method