add supports for loading demo in an iframe