var mail = document.getElementById("mail").value;
chrome.storage.local.set({email: mail}, function() {
console.log('Value is ' + mail);
});
chrome.storage.local.get(['mail'], function(result) {
console.log('Value currently is ' + result.mail);
});