When stdout is not a TTY, revert to non-colorized output

Avoid giving fancy colorized output when `js-yaml` output is piped into some command.