anchor.diff:      
       REPL.prototype.onNavigateHistory = function(direction) {
           this.previousCommandOffset += direction;
  +        var previousCommands = JSON.parse(localStorage.getItem("previousCommands"));
           
           if(this.previousCommandOffset < 0) {
               this.previousCommandOffset = -1;
  
positive.code:     function REPL(index) {
          this.index = index;
          
          this.previousCommands = [];
          this.previousCommandOffset = 0;
      }
      
      REPL.all = [];
  
negative.code:     REPL.prototype.onEnterKey = function() {
          var text = this.getInput();
          if(text != "" && text !== undefined) {
              var previousCommands = JSON.parse(localStorage.getItem("previousCommands"));
              this.previousCommandOffset = previousCommands.push(text);
              localStorage.setItem("previousCommands", JSON.stringify(previousCommands));
          }
          this.setInput("");
          this.sendInput(text);
  