Simple sync method for multiple, independent async calls in JavaScript
pastebin.com