Secure Web Based Chat using Flask + JavaScript