Webidl and basic implementation of XHR object