adding javascript chat object for quick integration in HTML5 web page