Jquery Wait For Function To Finish Ajax, ajax() method is really handy and works well.