wait for iframe to be ready before running example code