Use addEventListener for frame ready callback