Add ensure not in iframe javascript