Adding JS for chat