Added slicing for XMLHttpRequestObject