Remove DOM related code.