Update html head and rebuild