use abstracted XMLhttpRequest to support IE8