refactor(dom) ajax, global XMLHTTP -> local xhr