change write.js