Had done it on line 10.  `if(!filename) filename = 'console.json'` but can move it down to hear. I think `.json` is the best default file name as it always outputs json.