removes unneeded tags from head section