clean up HTML

Your autocomplete could do with work, but that'll take some time. Here are some quick fixes in the meantime.