added save.js with REPL command history