Move message from main.js to popup.js