using qajax to wrap XMLHttpRequest with Q promises