Rework form.js to use a.dom system.