Rename writer to writer.js