Fixes logging in sandbox.html.