Implement the getBrowser function