
1. Open the webChatSocket.js file.
2. Copy the following lines into your version:
    61,62 (the if-block that configures what to do with WebSocket code 1001)
    99  (setting webChat.initCalled to false)
    188,189 (calling the chatSocket.clearRefresh function)
    241-271 (functions to reloadAfterRefresh, setupRefresh and clearRefresh)
    254 (calling the chatSocket.loadTranscript function)
    265 (calling the chatSocket.saveTranscript function)
    268-298 (functions to save and load the transcript)
    279-294 (function to reload the users)  
3. Open the webChat.js file.
4. Copy the setupWebChat function into your version.
5. Copy the initChat function into your version.
6. Copy the getCurrentTranscript function into your version
7. Open the webChatUI.js file.
8. Copy the following lines into your version:

    129-143 (the closePanel function)
    150-163 (the code to set up the UI widget. This should go inside the setup function)
    196-198 (the reloadChatPanel function)