Replaced usage of stdout.write with console.log.
Removed leading space from output filename.