converted message type to JsValue