Update Chat.js

On send new message reset historyLocation to 0 so pressing up always goes to last sent message unless previously changed