Library to facilitate communication between embedded iframes and container page