compartmentalized browser-side code