local import of flatdoc
Merge pull request #4 from tonypiper/feature/fix-js

local import of flatdoc