doc + diff and patch type message for JS view