Add page:replace event, triggered when replacing the body element