結果 : loop through object attributes javascript