anchor.diff:          if(replInput) {
               replInput.focus();
           }
  +    }
  +
  +    function populateCommandPrompt(input, newOffset, bound) {
  +        var index = previousCommands.length + newOffset;
  +        var previousCommand;
  +
  +        if(index < previousCommands.length && index >= 0) {
  +            // the new index is within the bounds of the 
  +            // commands array, so grab the previously
  +            // entered command.
  +            previousCommandOffset = newOffset;
  +            previousCommand = previousCommands[index];
  +        }else{
  +            // the new index isn't within the bounds
  +            // of the array.
  +            previousCommand = "";
  +
  +            if(index == bound) {
  +                // set the offset just outside only
  +                // if we're at the bounds of the array.
  +                // this is so we only get one 'blank' 
  +                // command and don't continue moving
  +                // the offset when we shouldn't. 
  +                previousCommandOffset = newOffset;
  +            }
  +        }
  +        // now set the input's text to the previous command
  +        // in the list. 
  +        input.value = previousCommand; 
       }
       
       for(var i = 0; i < frames.length; i++) {
  
positive.code:     };
      
      applicationFrames.click();
      
      for(var i = 0; i < frames.length; i++) {
          if(frames[i].attributes["data-context"].value == "application") {
              frames[i].click();
              break;
          }
      }
  })();
  </script>
  </html>
  
negative.code:                             }
                              replPre.scrollTop = replPre.scrollHeight;
                          });
                      }else if(ev.keyCode == 38) {
                          // the user pressed the up arrow.
                          populateCommandPrompt(replInput, previousCommandOffset - 1, -1);     
                      }else if(ev.keyCode == 40) {
                          // the user pressed the down arrow.
                          populateCommandPrompt(replInput, previousCommandOffset + 1, previousCommands.length);
                      }
                  };
              }
          })(i, frames[i], frameInfos[i]);
      }
      
      document.querySelector(".frames li:first-child").click();
      
      var applicationFrames = document.getElementById("application_frames");
      var allFrames = document.getElementById("all_frames");
  