Fixed: chat sample and es.api.js