add as-html example and slight cleanup
cleanup