A simple JavaScript example to demonstrate communicating state between the parent window and an iframe