Adding onresize event for the iframes (Viewport.js)