chat.js in index.erb eingelagert