Small refactor and cleanup of REPL JS
Add contribution notes to README