removed unnecessary nesting in js-yaml