ui.js: Add an inline editor.

For @chromakode