fixed syntax error and browser detection

!document.all || !!window.XMLHttpRequest - commonly used hack
i test it with Chrome 27.0.1453.94, Firefox 20.0.1, IE6,7,8,9 - is work right