Revert "Update chat.js"

This reverts commit cd1c4cfa6f60acea32e529343375a45c7df43d2d.
Revert "test"

This reverts commit 86945b243dd27447409cc511fac836fb53b1c5e2.