Refactor Writes, and Writes numbers -> JsValue