Changing the iFrameHeight function to work better across browsers and only access the DOM once