correct js for chat/index.cshtml