title: Join 2 'threads' in javascript
body: <p>If I have an ajax call off fetching (with a callback) and then some other code running in the meantime. How can I have a third function that will be called when both of the first 2 are done. I'm sure it is easy with polling (setTimeout and then check some variables) but I'd rather a callback.</p>
  
  <p>Is it possible?</p>