bring over old Node REPL support stuff from my fork from 3 years ago,
decent starting point