added XMLHttpRequest example