結果 : how to group objects in javascript