結果 : javascript call two functions synchronously