add rudimentary XMLHttpRequest support