Removed chat.js and added the code in js.js

Removed chat.js because it does not work as intended and added the code
in it to our js.js file in order to get everything to work.