make XMLHttpRequest asynchronous (closes #8)