text: function main() {         
      //Variables
  	let btnSave = document.querySelector("#btnSave");
  	let btnLoad = document.querySelector("#btnLoad");
  	let textArea = document.querySelector("#textArea");		
  				
  	//Save the session onto the textArea
  	btnSave.addEventListener("click", function() {
  		//Query to get all tabs from the current window
  		chrome.tabs.query({windowType: "normal", status: "complete", windowId: chrome.windows.WINDOW_ID_CURRENT }, function(tabArray) {
  			//We will store the tab urls in sessionData
  			var sessionData = "";
  			//Store each tab's url to sessionData
  			for(var i = 0; i < tabArray.length; i++)
  					//Add the tab url to sessionData, plus a newline if not the final tab
  					sessionData += (i+1 == tabArray.length)? (tabArray[i].url) : (tabArray[i].url+"\n");
  			//Finally store the session text into the textArea
  			textArea.value = sessionData;
  		});
  	});
  	
  	//Load the session from the textArea
  	btnLoad.addEventListener("click", function(){
  		//Get the session text from textArea
  		var loadText = textArea.value;
  		//Create an array of each url (Note: No error checking! Assumes text is well formed.)
  		var loadArray = loadText.split('\n');
  		//Send each url to the background process to be opened after a small wait
  		for(var i = 0; i < loadArray.length; i++)
  			chrome.runtime.sendMessage({action: "NewTab", url: loadArray[i], wait: 100 * i});
  	});
  };
  
  main();