add yaml-to-json conversion to read config in js