change metadata to simple JsObject