XMLHttpRequest wrapper functions - no jQuery allowed