The Browser as a Secure Compute Sandbox for IoT Devices