Working json request charts in iframe