Free some of the DOM variables when they are not needed, before they are automatically freed when the frame is destroyed