Updated stringify when passing to iframe