Use min-document from npm

I rescued `min-document` to [Raynos/min-document](https://github.com/Raynos/min-document)

I also landed [your commit](https://github.com/Raynos/min-document/commit/608f1b9004a5d2de42089ee19fea5f3d729ece0f)