write files with javascript in console