fixed the isBrowser test.