結果 : how to run a function after another function in javascript