adds xhr wrapper for XMLHttpRequest
developing in lab
initial working example