Added data gathering function to popup.js. Starting background.js logic.