We currently have a survey that pops up in a new window when a user finishes chatting with a service agent. The javascript function to pop the survey is called on the onbef