Dynamically generate an iframe inside a document and resize it according to the width and height of load page