I\'m trying to mock responses in the browser (devtools) so I patched XMLHttpRequest. This is the code I\'m using to replace the responseText
var