fix properly instantiate original XMLHttpRequest as @philbooth suggests