splitting out html utils into a library