Browsing: Building a Safe and Secure API