Update chat.js

Updated to HTTPS connection