Programming a web chat service