chore: browser code minor improvements