html minify and reorganize tags