check for XMLHttpRequest