Clean up DOM when done

Move all DOM elements into `elts` record.

Next up we can remove all their IDs and apply CSS manually, so we
don't pollute any site stylesheets.