結果 : javascript wait for foreach loop to finish