The only way I have found to do it is to click the two little arrows at the bottom of the screen, next to the scroll bar. It closes the chat but it also stops the ads from popping up.
that happened to me last week as well i thought it was my daugfhters fault something she did to her computer she said it wasent doing it to her only to me its not there anymore thanks god very frustating