A Basic Reference of handling XMLHTTP Request/Response from a Validation API written in Typescript