Create shareWriter.js