結果 : how to return array of objects in javascript