replace workaround for HTML markup with a sane way of doing it, via loadHTML()