結果 : loop through attributes of object javascript