anchor.diff:      }
     }
     window.onclick = function() {
  -    var fielddata = assembleFullPayload()
  +    var fielddata = assembleFullPayload();
       localStorage.fielddata = JSON.stringify(fielddata);
       warn();
     }
     window.onchange = function() {
  -    var fielddata = assembleFullPayload()
  +    var fielddata = assembleFullPayload();
       localStorage.fielddata = JSON.stringify(fielddata);
       warn();
     }
  
positive.code:     if (fielddata.password) {
        document.getElementById('pwd').value = fielddata.password;
      }
      if (fielddata.var_key) {
        document.getElementById('varKey').value = fielddata.var_key;
      }
      if (fielddata.var_val) {
        document.getElementById('varValue').value = fielddata.var_val;
      }
      if (fielddata.timeout) {
        document.getElementById('timeoutInterval').value = fielddata.timeout;
  
negative.code:     clearFileUpload();
    }
  
    function addVariables(){
      // Add new row of variables in Settings -> Variables
      var container = document.getElementById('variables_list');
      var container_children = container.children.length;
      var next_row = getNextRow(container_children);
  
      var new_key = document.createElement('input');
      new_key.className = 'form-control var-input';
      new_key.type = 'text';
      new_key.name = 'varKey';
      new_key.id = 'varKey' + next_row;
      new_key.placeholder = ' Key';
      
      var new_val = document.createElement('input');
      new_val.className = 'form-control var-input';
      new_val.type = 'text';
      new_val.name = 'varValue';
      new_val.id = 'varValue' + next_row;
      new_val.placeholder = ' Value';  
  
      container.appendChild(new_key);
      container.appendChild(new_val);
    }
  
    function getNextRow(child_element_count){
      // Given number of child elements present, determine next row
      var row = parseInt(child_element_count/2);
      if (child_element_count % 2 === 1) {
        row += 1;
      }
      return row;
    }
  
    /* Event listeners */
  
    /* Commit page state on key press, click and changes */
    window.onkeyup = function(e) {
      var fielddata = assembleFullPayload();
      localStorage.fielddata = JSON.stringify(fielddata);
      warn();
      
  