Move chat to chat.js, add user list to chat