title and js.Flatdoc fix