replace dom structure #head with #cave