Update writer.js

Removed wrong line.