結果 : call one function only after another javascript