add ModifyFn to modify clonedWindow DOM