Sending in win and doc to parent script