Use flatdoc.js within dir