fixe fs.write Bad Argument on Heroku
fixe fs.write bad argument
change fs.write to fs.writeFile