set connection to localhost for demo, fixed padding of where chat windows spawn, and make sure scrollHeight is called on an existing element