Update to browser detection script