(write out js)
(defn write [^BufferedWriter out ^String js] (.write out js) (.write out (int 0)) ;; terminator (.flush out))