hjs to html fixes