changed model.js
added chat history