Adjusted isBrowser test to look for XMLHttpRequest