added .html to URLs in chat.js