html/: move js into agent.js
html/agent.js: add asserts, fix style
html/agent.js: Create a namespace
Gitignore /compile