Replaced popup method. When popup was used and the user navigated away from parent page some of the clients would no longer work properly (or at all).
Added additional data when chat ends (‘chatended' event)
Fix: added hack for IE and jQuery v1.7.
Fix: scrolling of chat window in client