Refactored and modified getInterceptedXHR method

Signed-off-by: Daniel Koo <danieljamin.koo@gmail.com>