Update shareWriter.js