remove example code
poll for the iframe to be loaded instead of sleeping