Reduce JavaScript output to STDOUT