testing write.js