fixed message parsing in iframe callback