upd dog.js from master