結果 : loop through a set in javascript