browser: improve script

- Only request HEAD
- Quote URL