added isXHR function to tiny core