Thanks for moving some of the code to separate functions!

Btw, you may consider moving code from here to the end of tell "SystemUIServer" to incapsulate available_browsers and default_browser which does not seem to be used anywhere else.