Store the target window, to migrate it to JSM file