Replace main element. IE incompat.