Cross browser support for flex and iframe