function_write.js