Updated yaml-spec

Added compatibility for latest YAML-spec with JS-specific specs