this code adds the iframe on the first opportinut (when the constructor runs, there isn't necessarily a previewArea yet), and sets up the communication channel for talking to the iframe. It's kind of essential code, what part of it would you like to see changed/moved, where?