adding refactored OSXBrowser code to this repo temporarily