結果 : javascript wait to run function