implemented mechanism of chating with knockout.js