Add repl switch for js2mode buffer