結果 : get out of foreach loop javascript