With this code you can emulate a windows with the chat integrated into the browser.