Fix REPL's copy of write-js fn