Create docwrite.js