Switched ajax requests over to jquery, fixed concurrency issues, added comments, and cited APIs