HTMLTidy and update jquery