Implementation of DD using XMLHttpRequest