Added the chance to send a message to window.opener; fixed internal naming