added links to chat html, toLink function to change window location