anchor.diff:          } else if(working_content.match(/^#/)) {
             var this_nest_level = working_content.match(/^#*/)[0].length;
             if(this_nest_level > current_nest_level) {
  -            parent_playlist = current_playlist;
               current_playlist = current_item;
               current_nest_level = this_nest_level;
             } else if(this_nest_level < current_nest_level) {
  -            current_nest_level = current_nest_level - 1;
  -            current_playlist = parent_playlist;
  +            var diff = current_nest_level - this_nest_level;
  +            for(var j = 0; j < diff; j++) {
  +              current_nest_level = current_nest_level - 1;
  +              current_playlist = current_playlist.parent_playlist;
  +            }
             } 
             if(working_content.match(/^#*[A-Z]/)) {
               var type_char = working_content.match(/^#*[A-Z]/)[0].slice(this_nest_level);
  
positive.code:       
      });
    },
    generate_data: function(modify_root_key) {
      var lines = $('#playlist_input textarea').val().split('\n');
      lines.push('ENDCONTENT');
  
negative.code:     var current_playlist = data[0];
      var current_item = data[0];
      var current_nest_level = 0;
      var working_content = '';
      for(var i = 0; i < lines.length; i++) {
        var line = lines[i];
  