Fixed opening chat, removed unnecessary popup.js, and added TODO