Remove functions that create elements in head/html sections