結果 : loop through properties of an object javascript