updated to automatically choose browser based on platform