fix XMLHttpRequest dependency