text: // Saves options to chrome.storage.sync.
  function save_options() {
      var face = document.getElementById('face').value;
      chrome.storage.sync.set({
        clockFace: face
      }, function() {
        // Update status to let user know options were saved.
        var status = document.getElementById('status');
        status.textContent = 'Options saved.';
        setTimeout(function() {
          status.textContent = '';
        }, 750);
      });
    }
  
    // Restores select box and checkbox state using the preferences
    // stored in chrome.storage.
    function restore_options() {
      chrome.storage.sync.get({
          clockFace: 'dials'
      }, function(items) {
        document.getElementById('face').value = items.clockFace;
      });
    }
    document.addEventListener('DOMContentLoaded', restore_options);
    document.getElementById('save').addEventListener('click', save_options);