[jquery] How do I make jQuery wait for an Ajax call to finish before it returns?