how browser works