tee.js code: stdin gets written to stdout and a file path argument