html/agent.js: Fix json-parsing in, say, FireFox

Ideally this shouldn't be necessary as the agent should return a proper
content type, but since it doesn't do that yet, we're forced to dealing
with these sort of silly workarounds.
html/: Move things around a bit, add banning
html/: Tweak text
html/agent.js: Fix panic.clear error message