copi the js openexternalfile