Fix browser function for Windows (to be squashed)