Can you please explain a bit what actually you want to achieve here ?
Because as i know all functions if is written one after another will be executed in same order. As by default in JavaScript they will be called synchronously only. So rather than calling the second method within the first method at end you can call the second method after first method only.
function1();
function2();
Calling them in order will execute the first method first and then the second method will be called.
Hope this will be of help to you :-
http://stackoverflow.com/questions/5187968/how-should-i-call-3-functions-in-order-to-execute-them-one-after-the-other